home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3568 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  839 b 

  1. Path: news.netinc.ca!usenet
  2. From: swallace@netinc.ca (Shawn Wallace)
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Pascal 'real' to C 'float'
  5. Date: Wed, 24 Jan 1996 20:18:58 GMT
  6. Organization: Network Enterprise Technology Inc.
  7. Message-ID: <4e674d$ett@maestro.netinc.ca>
  8. NNTP-Posting-Host: maple.netinc.ca
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I've run into a little difficulty converting the data from an older
  12. Pascal program into C.
  13.  
  14. I need to convert the pascal 'real' number (which I believe to be a
  15. 6-byte struct) to a C/C++ float or double (which are 4 and 8-bytes
  16. respecively).
  17.  
  18. I seem to remember the Turbo Pascal help files describing the exact
  19. way a pascal 'real' is stored, but I no longer have that compiler.
  20. Could anyone shed any light on this?  Please cc: any replies to my
  21. email (just in case).
  22.  
  23. Shawn
  24. swallace@netinc.ca
  25.  
  26.  
  27.